package com.example.company.service.impl;


import com.example.company.entity.Salariesbenefits;
import com.example.company.mapper.SalariesbenefitsMapper;
import com.example.company.service.ISalariesbenefitsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 存储员工薪酬福利信息Service业务层处理
 *
 * @author ruoyi
 * @date 2024-12-30
 */
@Service
public class SalariesbenefitsServiceImpl implements ISalariesbenefitsService {
	@Autowired
	private SalariesbenefitsMapper salariesbenefitsMapper;
	
	/**
	 * 查询存储员工薪酬福利信息
	 *
	 * @param SalariesBenefitsID 存储员工薪酬福利信息主键
	 * @return 存储员工薪酬福利信息
	 */
	@Override
	public Salariesbenefits selectSalariesbenefitsBySalariesBenefitsID(Long SalariesBenefitsID) {
		return salariesbenefitsMapper.selectSalariesbenefitsBySalariesBenefitsID(SalariesBenefitsID);
	}
	
	/**
	 * 查询存储员工薪酬福利信息列表
	 *
	 * @param salariesbenefits 存储员工薪酬福利信息
	 * @return 存储员工薪酬福利信息
	 */
	@Override
	public List<Salariesbenefits> selectSalariesbenefitsList(Salariesbenefits salariesbenefits) {
		return salariesbenefitsMapper.selectSalariesbenefitsList(salariesbenefits);
	}
	
	/**
	 * 新增存储员工薪酬福利信息
	 *
	 * @param salariesbenefits 存储员工薪酬福利信息
	 * @return 结果
	 */
	@Override
	public int insertSalariesbenefits(Salariesbenefits salariesbenefits) {
		return salariesbenefitsMapper.insertSalariesbenefits(salariesbenefits);
	}
	
	/**
	 * 修改存储员工薪酬福利信息
	 *
	 * @param salariesbenefits 存储员工薪酬福利信息
	 * @return 结果
	 */
	@Override
	public int updateSalariesbenefits(Salariesbenefits salariesbenefits) {
		return salariesbenefitsMapper.updateSalariesbenefits(salariesbenefits);
	}
	
	/**
	 * 批量删除存储员工薪酬福利信息
	 *
	 * @param SalariesBenefitsIDs 需要删除的存储员工薪酬福利信息主键
	 * @return 结果
	 */
	@Override
	public int deleteSalariesbenefitsBySalariesBenefitsIDs(Long[] SalariesBenefitsIDs) {
		return salariesbenefitsMapper.deleteSalariesbenefitsBySalariesBenefitsIDs(SalariesBenefitsIDs);
	}
	
	/**
	 * 删除存储员工薪酬福利信息信息
	 *
	 * @param SalariesBenefitsID 存储员工薪酬福利信息主键
	 * @return 结果
	 */
	@Override
	public int deleteSalariesbenefitsBySalariesBenefitsID(Long SalariesBenefitsID) {
		return salariesbenefitsMapper.deleteSalariesbenefitsBySalariesBenefitsID(SalariesBenefitsID);
	}
}
